﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FJERP.BLL;
using FJERP.Model;
using System.Data;


namespace FJERP.Handler
{
    /// <summary>
    /// Login 的摘要说明
    /// </summary>
    public class Login : IHttpHandler
    {
        EmployeeBLL bll = new EmployeeBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string name = context.Request["name"];
            string pwd = context.Request["pwd"];
            context.Response.Write(bll.login(name, pwd));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}